{extend name="public/base" /}

<title>{block name="title"}物品信息{/block}</title>
{block name="menu"}
<div>
    <h3>{$title}</h3>
</div>
{/block}
{block name="main"}
<!-- 右侧主信息 -->
<div class="con-box" style="padding: 10px;">
    <table class="layui-hide" id="user-data" lay-filter="user-data"></table>
</div>
{/block}
{block name="javascript"}
<script>
    var controllername = 'admin/api_image';
    var title = "图片";
    var filterArray = ["title","original_name","image_width","image_heiht","file_size","id"];
    var area = ["700px", "600px"];
    var line_height = 'height: 110px;';
    var cols = [ //标题栏
        { type: 'checkbox', fixed: 'left' },
        { field: 'id', title: 'ID', width: 80, sort: true },
        { field: 'url', title: '图片', width: 150, templet: '<div><img src={{= d.url }} /></div>' },       
        { field: 'original_name', title: '上传方式', width: 120 },
        { field: 'image_width', title: '宽度', width: 80 },
        { field: 'image_height', title: '高度', width: 80},
        { field: 'file_size', title: '大小', width: 150},
        { field: 'create_time', title: '创建时间', width: 200 },
        { fixed: 'right', title: '操作', width: 134, minWidth: 125, templet: '#toolDemo' }
    ]

</script>
{/block}